package com.gongj.mybatisplus.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.gongj.mybatisplus.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @program: mybatis-plus
 * @description:
 * @author: gongj
 * @Description: TODO
 * @create: 2020-06-25 10:51
 **/
//继承基本的类 BaseMapper
public interface UserMapper extends BaseMapper<User> {

    List<User> userJoinCard();

    List<User> userJoinCard2();

    List<User> userJoinCardPage(Page page);

    List<User> userJoinCardQuery(@Param("info") User user);

    IPage<User> userJoinCardPageQuery2(Page page, @Param(Constants.WRAPPER)QueryWrapper<User> queryWrapper);
}
